import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    menu: true,
    viewBtn: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: false,
    delBtn: false,
    searchLabelWidth: 120,
    column: [
      {
        label: '需求方',
        prop: 'p1',
        overHidden: true,
        search: true,

      },
      {
        label: '船名',
        prop: 'p2',
        dicData: self.shipSTypeArr,
        filterable: true,
        search: true,
        type: 'select',
        props: {
          label: 'lable',
          value: 'value'
        },
        overHidden: true,
      },
      {
        label: '货物类型',
        prop: 'p3',
        overHidden: true,
        search: true,

      },
      {
        label: '货物总量',
        prop: 'p4',
        overHidden: true,
        hide: true,
        type: 'select',
      },
      {
        label: '始发港',
        prop: 'p5',
        overHidden: true,
        type: 'select',
      },
      {
        label: '目的港',
        prop: 'p6',
        overHidden: true
      },
      {
        label: '卸货码头',
        prop: 'p7',
      },
      {
        label: '承接船队',
        prop: 'p8',
      },
      {
        label: '任务进度',
        prop: 'p9',
        search: true,
      },

    ]
  }
}


export const options1 = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menu: false,
    addBtn: true,
    addBtnText: '新增',
    searchShow: false,
    editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '船名',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '船企',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '船舶类型',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '船龄',
        prop: 'p4',
        overHidden: true,
      },
      {
        label: 'IMO',
        prop: 'p5',
        overHidden: true,
      },
      {
        label: 'MMSI',
        prop: 'p6',
        overHidden: true,
      },
      {
        label: '呼号',
        prop: 'p7',
        overHidden: true,
      },
      {
        label: '载重吨位',
        prop: 'p8',
        overHidden: true,
      },
      {
        label: '船舶尺寸',
        prop: 'p9',
        overHidden: true,
      },
      {
        label: '船籍',
        prop: 'p10',
        overHidden: true,
      },
      {
        label: '航行区',
        prop: 'p11',
        overHidden: true,
      },
    ]
  }
}